{{left_sidebar_enabled,right_sidebar_enabled=False,True}}

{{extend 'layout.html'}}
<h3>Show All product</h3>
<h3>{{=len(productList)}}</h3>

{{=form}}

<table>
{{for product in productList:}}

{{=TR(TD(A(IMG(_src=URL('getthumbnail', args=product.id),_class='productThumbnail'),_href=URL('showproduct',args=product.id))),TD(product.brandName,_class='brandName'),TD(product.productGender,_class='productGender'),TD(product.productType,_class='productType'),TD(product.productName,_class='productName'),TD(product.productStyle,_class='productStyle'),TD(product.origPrice,_class='origPrice'),TD(A(product.salePrice,_href=product.pageLink,_target='blank'),_class='salePrice'),TD(A(product.taobaoPrice,_href=product.taobaoLink,_target='blank'),_class='taobaoPrice'),TD(product.discount,"%",_class="discount"))}}
{{pass}}
</table>



{{block right_sidebar}}
{{=A(T("Return back"), _href=URL('index'), _class='button',
     _style='margin-top: 1em;')}}
{{=A(T("Update Thumbnail"), _href=URL('updateallthumbnail'), _class='button',
     _style='margin-top: 1em;')}}

<ul>
  <li>{{=A(T("Online examples"), _href=URL('examples','default','index'))}}</li>
  <li><a href="http://web2py.com">web2py.com</a></li>
  <li><a href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
</ul>
{{end}}
